package com.dyh.quickdemo.dasync;

import org.springframework.context.ApplicationEvent;

/*
@Author=Joey Wheeler
@Date=2021/3/11 17:10
*/
public class AsyncEvent extends ApplicationEvent {

    private AsyncEventContext asyncEventContext;

    public AsyncEvent(Object source,AsyncEventContext asyncEventContext) {
        super(source);
        this.asyncEventContext = asyncEventContext;
    }

    public AsyncEventContext getAsyncEventContext() {
        return asyncEventContext;
    }

    public void setAsyncEventContext(AsyncEventContext asyncEventContext) {
        this.asyncEventContext = asyncEventContext;
    }
}
